// pages/htmlnote/htmlnote.js
Page({

  data: {
list:[],
  },

  onLoad() {
    let that = this
    wx.cloud.database().collection('nodenote')
    .get({
      success(res){
        console.log('请求成功',res.data)
        that.setData({
       list:res.data,
        })
        
      },
      fail(err){
        console.log('请求失败',err)
      }
    })
  },

  contenttext(e){
    console.log("id:",e.currentTarget.dataset.id)
    console.log("title:",e.currentTarget.dataset.title)
    console.log("content:",e.currentTarget.dataset.content)
    console.log("time:",e.currentTarget.dataset.time)
wx.navigateTo({
  url: '/pages/nodecontent/nodecontent?id=' + e.currentTarget.dataset.id,
})
  }

  
})